<template>
<div class="playMV">
  <div class="left">
    <div class="left-box">
      <div class="header">
        <h1>123</h1>
      </div>
      <div class="video">
        <video :src="url" autoplay></video>
      </div>
      <div class="name">xxxx</div>
      <div class="title">标题</div>
      <div class="time">时长</div>
    </div>
  </div>

<!--  推荐内容-->
  <div class="right">
    <div class="right-header">
      <h1>123</h1>
    </div>
    <div class="right-box">
      <div class="item">
        <div class="img">
          <img src="../assets/images/mv.png" alt="">
          <span class="sum">播放量123</span>
          <span class="time">时间4.50</span>
        </div>
        <div class="title">
          <span class="title-name">我是标题hahahahah</span>
          <span class="username">名字</span>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
import axios from "axios";
export default {
  name: "playMV",
  data(){
    return{
      id:'',
      url:''
    }
  },
  created() {
    axios({
      url:"https://autumnfish.cn/mv/url",
      method:"get",
      params:{
        //获取url的id
        id:this.$route.query.id
      }
    }).then(res=>{
      // console.log(res)
      this.url = res.data.data.url
    })
  },
  methods(){

  }
}
</script>

<style scoped>
  .playMV{
    display: flex;
    width: 100%;
    height: 100%;
  }
  /*左内容*/
  .left{
    width: 75%;
    min-width: 700px;
  }
  .left-box{
    width: 700px;
    margin: auto;
  }
  .left-box .header{
    margin: 0  auto  10px;
    width: 700px;
    height: 50px;
    line-height: 50px;
  }
  .left-box .video{
    width: 700px;
    height: 390px;
  }
  .left-box .name{
    height: 60px;
    width: 700px;
    line-height: 60px;

  }
  .left-box .title{
    width: 700px;
    height: 60px;
    line-height: 60px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap;
  }
  .left-box .time{
    width: 700px;
    height: 30px;
    line-height: 30px;
  }
  /*推荐内容*/
  .right{
    width: 25%;
    min-width: 300px;
  }
  .right-header{
    width: 300px;
    height: 50px;
    line-height: 50px;
  }
  .item{
    display: flex;

  }
  .item .img{
    width: 180px;
    height: 100px;
    position: relative;
  }
  .img img{
    width: 180px;
    height: 100px;
  }
  .img .time{
    color: #f6f6f6;
    font-size: 13px;
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .img .sum{
    color: #f6f6f6;
    font-size: 13px;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
  .title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 120px;
  }
  .title-name{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap;
  }
  .username{
    color: #c6c6c6;
    font-size: 13px;
  }
</style>